package com.ruoyi.tongban.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 家长,关联member,为家长的扩展信息对象 usr_parental
 * 
 * @author ruoyi
 * @date 2021-08-02
 */
public class UsrParental extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private Long childId;

    /** 家长id */
    private Long parentalId;

    /** 家长性别,对应字典表sys_dictionary中UserSex类型 */
    @Excel(name = "家长性别,对应字典表sys_dictionary中UserSex类型")
    private Integer parentalSex;

    /** 家长生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "家长生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date parentalBirthday;

    /** 家长身份证号 */
    @Excel(name = "家长身份证号")
    private String parentalIdcard;

    /** 家长电话,与member表一样,可扩展 */
    @Excel(name = "家长电话,与member表一样,可扩展")
    private String parentalPhone;

    /** 家长学历,对应字典表sys_dictionary中EducationalType类型 */
    @Excel(name = "家长学历,对应字典表sys_dictionary中EducationalType类型")
    private Integer parentalEducational;

    /** 家长是否党员;关联sys_dictionary表中的IsNot类型 */
    @Excel(name = "家长是否党员;关联sys_dictionary表中的IsNot类型")
    private Integer parentalIscpc;

    /** 家长工作单位 */
    @Excel(name = "家长工作单位")
    private String parentalWorkunit;

    /** 家长单位职务 */
    @Excel(name = "家长单位职务")
    private String parentalPosition;

    /** $column.columnComment */
    @Excel(name = "家长单位职务")
    private Long createUser;

    /** $column.columnComment */
    @Excel(name = "家长单位职务")
    private Long updateUser;

    private String memberAccount;
    private String memberNick;
    private String parentRoleName;
    private String institutionName;
    private String gradeName;
    private String className;
    private Long parentRole;


    public Long getChildId() {
        return childId;
    }

    public void setChildId(Long childId) {
        this.childId = childId;
    }

    public void setParentalId(Long parentalId)
    {
        this.parentalId = parentalId;
    }

    public Long getParentalId() 
    {
        return parentalId;
    }
    public void setParentalSex(Integer parentalSex) 
    {
        this.parentalSex = parentalSex;
    }

    public Integer getParentalSex() 
    {
        return parentalSex;
    }
    public void setParentalBirthday(Date parentalBirthday) 
    {
        this.parentalBirthday = parentalBirthday;
    }

    public Date getParentalBirthday() 
    {
        return parentalBirthday;
    }
    public void setParentalIdcard(String parentalIdcard) 
    {
        this.parentalIdcard = parentalIdcard;
    }

    public String getParentalIdcard() 
    {
        return parentalIdcard;
    }
    public void setParentalPhone(String parentalPhone) 
    {
        this.parentalPhone = parentalPhone;
    }

    public String getParentalPhone() 
    {
        return parentalPhone;
    }
    public void setParentalEducational(Integer parentalEducational) 
    {
        this.parentalEducational = parentalEducational;
    }

    public Integer getParentalEducational() 
    {
        return parentalEducational;
    }
    public void setParentalIscpc(Integer parentalIscpc) 
    {
        this.parentalIscpc = parentalIscpc;
    }

    public Integer getParentalIscpc() 
    {
        return parentalIscpc;
    }
    public void setParentalWorkunit(String parentalWorkunit) 
    {
        this.parentalWorkunit = parentalWorkunit;
    }

    public String getParentalWorkunit() 
    {
        return parentalWorkunit;
    }
    public void setParentalPosition(String parentalPosition) 
    {
        this.parentalPosition = parentalPosition;
    }

    public String getParentalPosition() 
    {
        return parentalPosition;
    }
    public void setCreateUser(Long createUser) 
    {
        this.createUser = createUser;
    }

    public Long getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(Long updateUser) 
    {
        this.updateUser = updateUser;
    }

    public Long getUpdateUser() 
    {
        return updateUser;
    }

    public String getMemberAccount() {
        return memberAccount;
    }

    public void setMemberAccount(String memberAccount) {
        this.memberAccount = memberAccount;
    }

    public String getMemberNick() {
        return memberNick;
    }

    public void setMemberNick(String memberNick) {
        this.memberNick = memberNick;
    }

    public String getParentRoleName() {
        return parentRoleName;
    }

    public void setParentRoleName(String parentRoleName) {
        this.parentRoleName = parentRoleName;
    }


    public String getInstitutionName() {
        return institutionName;
    }

    public void setInstitutionName(String institutionName) {
        this.institutionName = institutionName;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) { this.className = className; }

    public Long getParentRole() {
        return parentRole;
    }

    public void setParentRole(Long parentRole) {
        this.parentRole = parentRole;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("parentalId", getParentalId())
            .append("parentalSex", getParentalSex())
            .append("parentalBirthday", getParentalBirthday())
            .append("parentalIdcard", getParentalIdcard())
            .append("parentalPhone", getParentalPhone())
            .append("parentalEducational", getParentalEducational())
            .append("parentalIscpc", getParentalIscpc())
            .append("parentalWorkunit", getParentalWorkunit())
            .append("parentalPosition", getParentalPosition())
            .append("createTime", getCreateTime())
            .append("createUser", getCreateUser())
            .append("updateTime", getUpdateTime())
            .append("updateUser", getUpdateUser())
            .toString();
    }


}
